<template>
  <div class="app-container">
    <div class="mainbox">
      <div class="table-container">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="综合研判" name="study">
            <WholeStudy v-if="activeName == 'study'" />
          </el-tab-pane>
          <el-tab-pane label="风险分析" name="risk">
            <RiskAssay v-if="activeName == 'risk'" />
          </el-tab-pane>
        </el-tabs>
      </div>
    </div>
  </div>
</template>

<script>
import WholeStudy from '@/views/investment/components/wholeStudy.vue'
import RiskAssay from '@/views/investment/components/riskAssay.vue'

export default {
  name: 'businessAssay',
  components: {
    WholeStudy,
    RiskAssay
  },
  data() {
    return {
      activeName: 'study'
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style scoped>

</style>
